package com.heima.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.pojo.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.vo.OrderCollectVo;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xjy
 * @since 2024-06-06
 */
public interface OrderMapper extends BaseMapper<Order> {


    Page<OrderCollectVo> pagePartnerCollect(Page<OrderCollectVo> page, String start, String end, String partnerName);

    List<Map<String, Object>> regionCollect(LocalDateTime startTime, LocalDateTime endTime);

    List<Map<String, Object>> amountCollect(Integer collectType, LocalDateTime startTime, LocalDateTime endTime);
}
